using System;
using UnityEngine;


namespace UnityStandardAssets.Utility
{
    public class FollowTarget : MonoBehaviour
    {
        public Transform target;
        public float offset;


        private void LateUpdate()
        {
            Vector3 newPosition=target.position;
            newPosition.y=offset;
            newPosition.z=-10;
            transform.position = newPosition;
        }
    }
}
